package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the CONTRACT_ADMINISTRATION database table.
 * 
 */
@Entity
@Table(name="CONTRACT_ADMINISTRATION")
@NamedQuery(name="ContractAdministration.findAll", query="SELECT c FROM ContractAdministration c")
public class ContractAdministration implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CONTRACT_ADMINISTRATION_CONADID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONTRACT_ADMINISTRATION_CONADID_GENERATOR")
	@Column(name="CONAD_ID")
	private long conadId;

	@Column(name="CONAD_CONTENT")
	private String conadContent;

	@Column(name="CONAD_ENDTIME")
	private Timestamp conadEndtime;

	@Column(name="CONAD_REMARKS")
	private String conadRemarks;

	@Column(name="CONAD_STARTTIME")
	private Timestamp conadStarttime;

	@Column(name="CONAD_TERM")
	private Timestamp conadTerm;

	@Column(name="CONAD_TRYOUTENDTIME")
	private Timestamp conadTryoutendtime;

	//bi-directional many-to-one association to ContractCategory
	@ManyToOne
	@JoinColumn(name="CONCA_ID")
	private ContractCategory contractCategory;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public ContractAdministration() {
	}

	public long getConadId() {
		return this.conadId;
	}

	public void setConadId(long conadId) {
		this.conadId = conadId;
	}

	public String getConadContent() {
		return this.conadContent;
	}

	public void setConadContent(String conadContent) {
		this.conadContent = conadContent;
	}

	public Timestamp getConadEndtime() {
		return this.conadEndtime;
	}

	public void setConadEndtime(Timestamp conadEndtime) {
		this.conadEndtime = conadEndtime;
	}

	public String getConadRemarks() {
		return this.conadRemarks;
	}

	public void setConadRemarks(String conadRemarks) {
		this.conadRemarks = conadRemarks;
	}

	public Timestamp getConadStarttime() {
		return this.conadStarttime;
	}

	public void setConadStarttime(Timestamp conadStarttime) {
		this.conadStarttime = conadStarttime;
	}

	public Timestamp getConadTerm() {
		return this.conadTerm;
	}

	public void setConadTerm(Timestamp conadTerm) {
		this.conadTerm = conadTerm;
	}

	public Timestamp getConadTryoutendtime() {
		return this.conadTryoutendtime;
	}

	public void setConadTryoutendtime(Timestamp conadTryoutendtime) {
		this.conadTryoutendtime = conadTryoutendtime;
	}

	public ContractCategory getContractCategory() {
		return this.contractCategory;
	}

	public void setContractCategory(ContractCategory contractCategory) {
		this.contractCategory = contractCategory;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}